<?php

ini_set('display_errors', 1);

// include framework
require realpath(dirname(__FILE__).'/../'). '/framework/sysconfig.php';

// start application
define('APP_ROOT', realpath(dirname(__FILE__).'/..'));
define('SHARE_PATH', HOME_PATH . '/share');
define('APP_REGISTRY_PATH', 'file://' . SHARE_PATH . '/registry');
define('APP_REGISTRY_MODE_PATH', 'file://' . SHARE_PATH . '/registry/' . Env::server('HTTP_HOST', 'rss-news.my'));
define('APP_TEMPLATES_DIR', APP_ROOT . '/application.admin/view');
Registry::set('View', new PlainPHPView(APP_TEMPLATES_DIR));
DbConnection::init(APP_REGISTRY_MODE_PATH . '/Database');

?>